const fs = require("fs");

exports.getFileName = (callback) => {
    fs.readdir("./upload", (err, files) => {
        callback(files)
    })
}

exports.checkFile = (data, callback) => {
    fs.readdir(`./upload/${data}`, (err, files) => {
        callback(files)
    })
}